package cn.mju.tankfighterbackend.config

import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder
import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType
import javax.sql.DataSource



@Configuration
class DataSourceConfig {
//    @Bean
//    fun dataSource(): DataSource? {
//        return EmbeddedDatabaseBuilder()
//            .generateUniqueName(true)
//            .setType(EmbeddedDatabaseType.H2)
//            .setScriptEncoding("UTF-8")
//            .ignoreFailedDrops(true)
//            .build()
//    }
}